﻿@model pcObjectLibrary.CompanyObjLibrary
@{
    ViewBag.Title = "Company Registration";
}
<div class="col-lg-6">
    <div class="well bs-component">
        @using (Html.BeginForm("Register", "Employer",
                        new { enctype = "multipart/form-data" },
                         FormMethod.Post,
                        new { @class = "form-horizontal" }))
        {
            <fieldset>
                <legend>@ViewBag.Title</legend>
                <div class="form-group">
                    @Html.LabelFor(x => x.name, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.name, new { @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.name)
                    </div>
                    </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.summary, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextAreaFor(x => x.summary, new { @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.summary)
                    </div>
                    </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.logoUrl, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        <input id="fileUploader" type="file" name="logo" class="form-control" />
                        @* @Html.TextBoxFor(x => x.logoUrl)*@
                        @Html.ValidationMessageFor(x => x.logoUrl)
                    </div>
                    </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.deltaPunchTime, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.deltaPunchTime, new { title = "5 minutes default", @class = "form-control", type = "number", min = -10, max = 10, value = 1 })
                        @Html.ValidationMessageFor(x => x.deltaPunchTime)
                    </div>
                    </div>
                @*  <li>
                        @Html.LabelFor(x => x.registerCode, new { title="Employee to setup PunchClock account" })
                        @Html.TextBoxFor(x => x.registerCode, new { title="Employee to setup PunchClock account", placeholder="xxxxxx" })
                        @Html.ValidationMessageFor(x => x.registerCode)
                    </li>*@

                <div class="form-group">
                    @Html.LabelFor(x => x.user.firstName, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.user.firstName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.user.firstName)
                    </div>
                    </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.user.lastName, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.user.lastName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.user.lastName)
                    </div>
                    </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.user.email, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.user.email, new { type = "email", placeholder = "you@website.com", @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.user.email)
                    </div>
                    </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.user.telephone, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.user.telephone, new { placeholder = "(xxx) xxx-xxxx", @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.user.telephone)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.user.userName, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.TextBoxFor(x => x.user.userName, new { @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.user.userName)
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(x => x.user.password, new { @class = "col-lg-2 control-label" })
                    <div class="col-lg-10">
                        @Html.PasswordFor(x => x.user.password, new { @class = "form-control" })
                        @Html.ValidationMessageFor(x => x.user.password)
                    </div>
                </div>
                <div class="col-lg-10 col-lg-offset-2">
                    <input type="submit" value="Sign up" class="btn btn-primary" />
                </div>
            </fieldset>
        }
    </div>
</div>